/* 初始化样式 */
:root {
    --prev-color-white: #ffffff;
    --prev-bg-main-color: #f8f8f8;
    --prev-bg-color: #f5f5ff;
    --prev-bg-white: #ffffff;

    --prev-border-color-light: #f1f2f3;
    --prev-color-primary: #4165d7;
    --prev-color-primary-lighter: #ecf5ff;
    --prev-color-success-lighter: #f0f9eb;
    --prev-color-warning-lighter: #fdf6ec;
    --prev-color-danger-lighter: #fef0f0;
    --prev-color-dark-hover: #0000001a;
    --prev-color-menu-hover: rgba(0, 0, 0, 0.2);

    --prev-color-user-hover: rgba(0, 0, 0, 0.04);
    --prev-color-seting-main: #e9eef3;
    --prev-color-seting-aside: #d3dce6;
    --prev-color-seting-header: #b3c0d1;
    --prev-bg-menuBar-active-color: #1e80ff1a;

    //菜单中的颜色定义后续优化
    --prev-bg-menuBar: #2d303a;
    --prev-bg-menuBarColor: #eaeaea;
    --prev-bg-topBar: #ffffff;
    --prev-bg-topBarColor: #606266;
    --prev-bg-menuBarActiveColor: rgba(0, 0, 0, 0.3);

    --prev-bg-logo: #2d303a;
}
html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family:
        Helvetica Neue,
        Helvetica,
        PingFang SC,
        Hiragino Sans GB,
        Microsoft YaHei,
        SimSun,
        sans-serif;
    font-weight: 400;
    background-color: var(--prev-bg-main-color);
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
    .bar {
        background: var(--el-color-primary) !important;
        z-index: 9999999 !important;
    }
}

/* flex 弹性布局
------------------------------- */
.flex {
    display: flex;
}
.flex-auto {
    flex: 1;
    overflow: hidden;
}
.flex-center {
    @extend .flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}
.flex-margin {
    margin: auto;
}
.flex-warp {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 0 -5px;
    .flex-warp-item {
        padding: 5px;
        .flex-warp-item-box {
            width: 100%;
            height: 100%;
        }
    }
}
/* cursor 鼠标形状
------------------------------- */
// 默认
.cursor-default {
    cursor: default !important;
}
// 帮助
.cursor-help {
    cursor: help !important;
}
// 手指
.cursor-pointer {
    cursor: pointer !important;
}
// 移动
.cursor-move {
    cursor: move !important;
}

/* 宽高 100%
------------------------------- */
.w100 {
    width: 100% !important;
}
.h100 {
    height: 100% !important;
}
.vh100 {
    height: 100vh !important;
}
.max100vh {
    max-height: 100vh !important;
}
.min100vh {
    min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
    color: var(--el-color-primary);
}
.color-success {
    color: var(--el-color-success);
}
.color-warning {
    color: var(--el-color-warning);
}
.color-danger {
    color: var(--el-color-danger);
}
.color-info {
    color: var(--el-color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
    .font#{$i} {
        font-size: #{$i}px !important;
    }
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 35 {
    .mt#{$i} {
        margin-top: #{$i}px !important;
    }
    .mr#{$i} {
        margin-right: #{$i}px !important;
    }
    .mb#{$i} {
        margin-bottom: #{$i}px !important;
    }
    .ml#{$i} {
        margin-left: #{$i}px !important;
    }
    .pt#{$i} {
        padding-top: #{$i}px !important;
    }
    .pr#{$i} {
        padding-right: #{$i}px !important;
    }
    .pb#{$i} {
        padding-bottom: #{$i}px !important;
    }
    .pl#{$i} {
        padding-left: #{$i}px !important;
    }
}
